package com.kwlt.smc.http;

import com.kwlt.smc.entity.HttpSmsEntity;


public class RunZb003ThreadHttp extends Thread{
	/**
	 * 操作类型
	 */
	private String operType;
	
	private HttpSmsEntity httpSmsEntity;

	public RunZb003ThreadHttp(String operType,HttpSmsEntity httpSmsEntity){
		this.operType = operType;
		this.httpSmsEntity = httpSmsEntity;
	}
	public void run() {
		HttpSmsInter inter = new Zb003Impl();
		if(operType.equals("mt")){
			//启动mt方法
			inter.sendHttpSms(httpSmsEntity);
		}else if(operType.equals("rpt")){
			inter.getHttpSmsRpt(httpSmsEntity);
		}else if(operType.equals("mo")){
			inter.getHttpSmsMo(httpSmsEntity);
		}
	}
}
